import { Controller, UseFilters, UseInterceptors, UsePipes, ValidationPipe, UseGuards } from '@nestjs/common';
import { ApiTags, ApiBearerAuth } from '@nestjs/swagger';
import { Crud, CrudController } from '@nestjsx/crud';
import { ProjectConstruction } from 'libs/db/entity/project-construction.entity';
import { HttpExceptionFilter } from '../_filter/http-exception.filter';
import { LoggingInterceptor } from '../_interceptor/logging.interceptor';
import { ProjectConstructionCrudOps } from './project-construction-crud-ops';
import { ProjectConstructionService } from './project-construction.service';
import { AuthGuard } from '@nestjs/passport';


@Crud(ProjectConstructionCrudOps)
@UseFilters(HttpExceptionFilter)
@UsePipes(ValidationPipe)
@UseInterceptors(LoggingInterceptor)
@UseGuards(AuthGuard('jwt-web'))
@ApiBearerAuth()
@ApiTags('三资管理 - 项目建设信息')   //标签
@Controller('project-construction')
export class ProjectConstructionController implements CrudController<ProjectConstruction> {
  constructor(public service: ProjectConstructionService) {
  }
}
